//
//  SpaceModel.m
//  s.
//
//  Created by fanshijian on 2022/8/24.
//  Copyright © 2022 J. All rights reserved.
//

#import "SpaceModel.h"

@implementation SpaceModel

- (void)prepareLayoutDefault{
    self.layout.itemSize = (CGSize){kScreenWidth,20};
}

+ (instancetype)spaceWithColor:(NSString *)color size:(CGSize)size{
    SpaceModel *spc   = SpaceModel.new;
    spc.color           = color;
    spc.layout.itemSize = size;
    return spc;
}

- (NSString *)idf{
    if (self.idfBlock) return self.idfBlock();
    return @"SpacingCell";
}


@end
